//Component Object
Component({
  properties: {
    curShareRecord:{
      type:Object,
      value:{}
    },
  },
  data: {
    
  },
  methods: {
    hideSharePanel(){
      this.triggerEvent('hideSharePanel')
    },
    jumpToTemplatePage(event:any){
      // this.triggerEvent('hideSharePanel')
      let type = event.currentTarget.dataset.type
      
      wx.navigateTo({
        url:'/pages/singleTemplate/singleTemplate?recordId='+this.data.curShareRecord.id+'&templateCode='+type
      })
    },
  }
});